/* 购物车页面专用样式 */

/* 购物车容器 */
.cart-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

/* 页面标题 */
.page-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #333;
}

/* 空购物车样式 */
.empty-cart {
  text-align: center;
  padding: 60px 0;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.empty-cart-icon {
  font-size: 60px;
  margin-bottom: 20px;
  color: #ccc;
}

.empty-cart h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.empty-cart p {
  color: #999;
  margin-bottom: 30px;
}

.continue-shopping {
  display: inline-block;
  background-color: #3f51b5;
  color: white;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.continue-shopping:hover {
  background-color: #303f9f;
}

/* 购物车内容区域 */
.cart-content {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* 购物车表头 */
.cart-header {
  display: flex;
  align-items: center;
  background-color: #f7f7f7;
  padding: 15px 20px;
  font-weight: 500;
  color: #333;
  border-bottom: 1px solid #eee;
}

/* 购物车列宽度设置 */
.col-check {
  width: 8%;
  display: flex;
  align-items: center;
}

.col-info {
  width: 42%;
}

.col-price,
.col-quantity,
.col-total {
  width: 12%;
  text-align: center;
}

.col-action {
  width: 10%;
  text-align: center;
}

/* 购物车项样式 */
.cart-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
  border-bottom: none;
}

/* 商品信息样式 */
.product-info {
  display: flex;
  align-items: center;
}

.product-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
}

.product-details {
  flex: 1;
}

.product-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
}

.product-desc {
  font-size: 14px;
  color: #999;
}

/* 数量控制样式 */
.quantity-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 34px;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.quantity-btn {
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.quantity-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
}

.quantity-input {
  width: 50px;
  height: 100%;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 删除按钮样式 */
.remove-btn {
  padding: 6px 12px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.remove-btn:hover {
  background-color: #d32f2f;
}

/* 购物车底部 */
.cart-footer {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
}

/* 购物车操作区 */
.cart-ops {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.clear-cart {
  padding: 8px 15px;
  color: #999;
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 10px;
}

.clear-cart:hover {
  color: #f44336;
  border-color: #f44336;
}

.cart-tips {
  font-size: 12px;
  color: #999;
}

.cart-tips p {
  margin: 3px 0;
}

/* 购物车总计区域 */
.cart-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.selected-count {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.selected-count span {
  color: #f44336;
  font-weight: bold;
}

.total-price {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.total-price span {
  color: #f44336;
  font-size: 22px;
}

.checkout-btn {
  padding: 10px 30px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.checkout-btn:hover {
  background-color: #d32f2f;
}

.checkout-btn:disabled {
  background-color: #ddd;
  cursor: not-allowed;
}

/* 猜你喜欢区域 */
.you-may-like {
  margin-top: 40px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .cart-header, .cart-item {
    padding: 10px;
  }
  
  .col-price, .col-quantity, .col-total {
    width: 15%;
  }
  
  .col-info {
    width: 35%;
  }
  
  .product-thumbnail {
    width: 60px;
    height: 60px;
  }
  
  .quantity-controls {
    width: 100px;
  }
  
  .cart-footer {
    flex-direction: column;
  }
  
  .cart-ops, .cart-total {
    width: 100%;
  }
  
  .cart-total {
    margin-top: 20px;
    align-items: flex-start;
  }
  
  .checkout-btn {
    width: 100%;
  }
} 


/* 地址表单弹窗样式 */
.address-form-dialog .el-message-box__content {
  padding: 10px 20px;
}

.address-form-dialog .el-form-item {
  margin-bottom: 15px;
}

.address-form-dialog .el-textarea__inner {
  min-height: 80px;
}

/* 支付方式选择样式 - 美化版 */
.payment-methods {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* 支付方式选择样式 - 修改文字显示在一行 */
.payment-method {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  flex: 1;
  min-width: 120px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  white-space: nowrap; /* 防止文字换行 */
  overflow: hidden; /* 防止内容溢出 */
}

.payment-info {
  display: flex;
  flex-direction: row; /* 改为行排列 */
  align-items: center; /* 垂直居中对齐 */
  white-space: nowrap; /* 防止文字换行 */
}

.payment-name {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap; /* 防止文字换行 */
}

.payment-method:hover {
  border-color: #409eff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.payment-method.selected {
  border-color: #409eff;
  background-color: #ecf5ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.2);
}

.payment-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.alipay-icon {
  background: linear-gradient(135deg, #1677ff, #0e5cdb);
  color: white;
}

.wechat-icon {
  background: linear-gradient(135deg, #07c160, #05a350);
  color: white;
}

.bankcard-icon {
  background: linear-gradient(135deg, #fa8c16, #d87205);
  color: white;
}

.payment-name {
  font-size: 15px;
  font-weight: 500;
}

/* 地址表单弹窗样式 - 美化版 */
.address-form-dialog .el-message-box__content {
  padding: 20px 25px;
}

.address-form-dialog .el-message-box__header {
  padding: 15px 25px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ebeef5;
}

.address-form-dialog .el-message-box__title {
  font-size: 18px;
  font-weight: 600;
  color: #303133;
}

.address-form-dialog .el-form-item {
  margin-bottom: 20px;
}

.address-form-dialog .el-form-item__label {
  font-weight: 500;
  color: #606266;
}

.address-form-dialog .el-input__inner,
.address-form-dialog .el-textarea__inner {
  border-radius: 6px;
  transition: all 0.3s;
}

.address-form-dialog .el-input__inner:focus,
.address-form-dialog .el-textarea__inner:focus {
  border-color: #409eff;
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.address-form-dialog .el-textarea__inner {
  min-height: 80px;
  resize: vertical;
}

.address-form-dialog .el-message-box__btns {
  padding: 10px 25px 20px;
}

.address-form-dialog .el-button {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s;
}

.address-form-dialog .el-button--primary {
  background-color: #409eff;
  border-color: #409eff;
}

.address-form-dialog .el-button--primary:hover {
  background-color: #66b1ff;
  border-color: #66b1ff;
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.4);
}

